package com.guofen.dao;

import com.guofen.pojo.ShljBlockageCleaning;
import com.guofen.pojo.ShljElectricityMeter;
import com.guofen.pojo.ShljEquipmentMaintenance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ShljEquipmentMaintenanceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShljEquipmentMaintenance record);

    int insertSelective(ShljEquipmentMaintenance record);

    ShljEquipmentMaintenance selectByPrimaryKey(Integer id);

    ShljEquipmentMaintenance selectLatest(Map<String, Object> data);

    ShljEquipmentMaintenance getLast();

    int updateByPrimaryKeySelective(ShljEquipmentMaintenance record);

    int updateByPrimaryKey(ShljEquipmentMaintenance record);

    List<ShljEquipmentMaintenance> selectlastByName(String equipmentName);

    int selectInThisWeek();

    List<ShljEquipmentMaintenance> getWeekRecords(String equipmentName);

    List<ShljEquipmentMaintenance> selectAll();

    List<ShljEquipmentMaintenance> selectByDate(@Param("startDate") String startDate,
                                            @Param("endDate") String endDate);
}